package com.dbManage.dao;


import com.dbManage.annotation.MyBatisRepository;
import com.dbManage.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@MyBatisRepository
public interface UserDao {
    void insertUser(User user);

    User findUser(String username);

    List<User> findAllUser();

    List<User> findUserByRole(int id);

    User findUserById(int id);

    void updateUserInfo(User user);

    void deleteUser(int id);

    void updatePassword(User user);

    void updateRole(User user);

    List<User> queryUser(User user);
}
